# @file    : utils
# @time    : 2025/5/29
# @author  : yongpeng.yao
# @desc    :
import time


def take_up_time(func):
    def wrapper(*args, **kwargs):
        print("开始执行---->")
        now = time.time()
        result = func(*args, **kwargs)
        using = (time.time() - now) * 1000
        print(f"结束执行,消耗时间为：{using}ms")
        return result

    return wrapper
